<script src="<?=gurl('js');?>/plugin.js"></script>
<div class="w660">
		<div class="smallCon">
			<div class="column">
					<p class="title"><?=$title;?> <?php if($currentplugin["public"] == '1' && $userid != $owner['id']):?><img src="/images/gong.gif" style="vertical-align:sub;" title="来自公共创建" /><? endif;?></p>
					<p><em style="margin-right:10px"><a href="/home/profile/<?=$userinfo["id"];?>"><?=$userinfo["username"];?></a></em> <em class="time"><?=date("Y-m-d H:i",$addtime);?></em> <? if($account["account_id"] == $userid):?><em style="margin-left:20px"><a href="<?=c('site_url');?><?=$site['domain'];?>/plugin/edit/<?=$plid;?>/<?=$id;?>">编辑</a> <a href="#TB_inline?height=120&width=396&inlineId=hiddenModalContent4&modal=true" class="thickbox">删除</a></em><? elseif($isowner):?><em style="margin-left:20px"><a href="#TB_inline?height=120&width=396&inlineId=hiddenModalContent4&modal=true" class="thickbox">删除</a></em><? endif;?> <em style="margin-left:20px" class="cRed">
					<!-- JiaThis Button BEGIN -->
					<a href="http://www.jiathis.com/share/" class="jiathis" ><img src="http://v1.jiathis.com/code/images/jiathis2.gif" border="0" /></a>
					<script type="text/javascript" src="http://v1.jiathis.com/code/jia.js" charset="utf-8"></script>
					<!-- JiaThis Button END --> 
					</em></p>
					<div class="blank8"></div>
					<? if(!$isposted):?>
					<form action="<?=c('site_url');?><?=$site['domain'];?>/vote" method="post" enctype="multipart/form-data" onsubmit="return Validator.Validate(this,3);">
					<ul class="f14px">
						<li>(<?=$type;?>)</li>
						<? foreach ($options as $k => $option):?>
						<? if($typeid == 0):?>
							<? $boxname = "option_".$id;?>
						<? else:?>
							<? $boxname = "option_".$id."[]";?>
						<? endif;?>
						<li><input name="<?=$boxname;?>" id="<?=$boxname;?>" type="<?=$box;?>" value="<?=$option["id"];?>" <? if($k == 0):?>dataType="Group" msg="至少选择一个选项"<? endif;?> /><?=$option["option"];?></li>
						<? endforeach;?>
					</ul>
					<input type="hidden" name="moduleid" id="moduleid" value="<?=$moduleid;?>">
					<input type="hidden" name="dataid" id="dataid" value="<?=$id;?>">
					<input type="hidden" name="typeid" id="typeid" value="<?=$typeid;?>">
					<p class="f14px" style="height:30px;padding-top:12px;border-bottom:1px solid #D0D1D2"><? if($account):?><input name="dosubmit" id="dosubmit" value="投票" type="submit" class="airIco" /><? else:?><a href="#TB_inline?height=120&width=396&inlineId=hiddenModalContent&modal=true" class="thickbox"><input name="dosubmit" id="dosubmit" value="投票" type="button" class="airIco" style="border:0;" /></a><? endif;?> <em class="cCGray"><?=$total;?>投票</em> <em class="cCGray"><?=$commentcount;?>回应</em></p>
					</form>
					<? else:?>
					<? foreach ($optionsdata as  $val):?>
						<li><span class="countTit"><?=$val["option"];?></span><span class="countBox"><span class="percent" style="width:<?=$val["scale"];?>%"></span></span><span class="countRight"><?=$val["scale"];?>%(<?=$val["count"];?>)</span></li>
					<? endforeach;?>
					</ul>
					<div class="hackbox"></div>
					<p class="f14px" style="height:30px;padding-top:12px;border-bottom:1px solid #D0D1D2"><em class="cGreen">已投过</em> <em class="cCGray"><?=$total;?>投票</em> <em class="cCGray"><?=$commentcount;?>回应</em></p>
					<? endif;?>
					<div class="blank8"></div>
					<div class="w580">
					<? if($account):?>
					<form action="<?=gurl('/');?>comment/add" method="post" enctype="multipart/form-data" onsubmit="return Validator.Validate(this,2);">
						<textarea style="width: 500px; height: 100px; border: 1px solid #CCCCCC;" rows="" cols="" name="content" id="content" dataType="Require" msg="请输入内容"></textarea>
						<div class="blank8"></div>
						<p style="padding:0 75px 40px 0;" class="t_r"><input type="submit" class="airIco" value="回应" name="dosubmit" id="dosubmit"></p>
						<div class="blank8"></div>
						<input type="hidden" name="siteid" id="siteid" value="<?=$site['id'];?>">
						<input type="hidden" name="plid" id="plid" value="<?=$plid;?>">
						<input type="hidden" name="dataid" id="dataid" value="<?=$id;?>">
				    </form>
				    <? endif;?>
					<script language="javascript" src="<?=gurl('/');?>comment/index/<?=$site['id'];?>/<?=$plid;?>/<?=$id;?>/<?=$offset;?>"></script>               
		</div>
		
	</div>
	<script language="javascript" src="<?=c('site_url');?><?=$site['domain'];?>/right"></script>
	<div class="hackbox"></div>
</div>